<?php

if ( ! defined('BASEPATH')) exit('No direct script access allowed');



class Settings  extends CI_Controller{
	
	public function __construct()
	{
		parent::__construct();
		
		if(!$this->session->userdata('is_logged_in')){
			redirect('login');
		}
		
		$this->load->model('settings_model');
	}
	
	public function index()
	{
		
	}
	
	public function dept_view()
	{
		$dept_list=$this->settings_model->get_dept_list();
		$data['dept_list']=$dept_list;
		$data['main_content'] = 'settings/department'; 
        $this->load->view('includes/template', $data);  
	}
	
	public function dept_create()
	{
		
	}
}

?>